package com.ruoyi.system.service.impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.YxDeviceLogUploadRecord;
import com.ruoyi.system.mapper.YxDeviceLogUploadRecordMapper;
import com.ruoyi.system.service.IYxDeviceLogUploadRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Android日志上传Service业务层处理
 * 
 * @author lingyu
 * @date 2024-08-01
 */
@Service
public class YxDeviceLogUploadRecordServiceImpl implements IYxDeviceLogUploadRecordService 
{
    @Autowired
    private YxDeviceLogUploadRecordMapper yxDeviceLogUploadRecordMapper;

    /**
     * 查询Android日志上传
     * 
     * @param id Android日志上传主键
     * @return Android日志上传
     */
    @Override
    public YxDeviceLogUploadRecord selectYxDeviceLogUploadRecordById(Long id)
    {
        return yxDeviceLogUploadRecordMapper.selectYxDeviceLogUploadRecordById(id);
    }

    /**
     * 查询Android日志上传列表
     * 
     * @param yxDeviceLogUploadRecord Android日志上传
     * @return Android日志上传
     */
    @Override
    public List<YxDeviceLogUploadRecord> selectYxDeviceLogUploadRecordList(YxDeviceLogUploadRecord yxDeviceLogUploadRecord)
    {
        return yxDeviceLogUploadRecordMapper.selectYxDeviceLogUploadRecordList(yxDeviceLogUploadRecord);
    }

    /**
     * 新增Android日志上传
     * 
     * @param yxDeviceLogUploadRecord Android日志上传
     * @return 结果
     */
    @Override
    public int insertYxDeviceLogUploadRecord(YxDeviceLogUploadRecord yxDeviceLogUploadRecord)
    {
        yxDeviceLogUploadRecord.setCreateTime(DateUtils.getNowDate());
        return yxDeviceLogUploadRecordMapper.insertYxDeviceLogUploadRecord(yxDeviceLogUploadRecord);
    }

    /**
     * 修改Android日志上传
     * 
     * @param yxDeviceLogUploadRecord Android日志上传
     * @return 结果
     */
    @Override
    public int updateYxDeviceLogUploadRecord(YxDeviceLogUploadRecord yxDeviceLogUploadRecord)
    {
        return yxDeviceLogUploadRecordMapper.updateYxDeviceLogUploadRecord(yxDeviceLogUploadRecord);
    }

    /**
     * 批量删除Android日志上传
     * 
     * @param ids 需要删除的Android日志上传主键
     * @return 结果
     */
    @Override
    public int deleteYxDeviceLogUploadRecordByIds(Long[] ids)
    {
        return yxDeviceLogUploadRecordMapper.deleteYxDeviceLogUploadRecordByIds(ids);
    }

    /**
     * 删除Android日志上传信息
     * 
     * @param id Android日志上传主键
     * @return 结果
     */
    @Override
    public int deleteYxDeviceLogUploadRecordById(Long id)
    {
        return yxDeviceLogUploadRecordMapper.deleteYxDeviceLogUploadRecordById(id);
    }
}
